CreatePopupCallback

This callback is invoked when browser decides whether a new popup instance can be created or not.

Return the create response to let the browser to create a new popup.

Return the suppress response to suppress popup.

If the callback throws an exception, the suppress method will be invoked.

Important: the engine will be blocked until you return control from the callback.

Types

Link copied to clipboard
interface Params
The parameters of the CreatePopupCallback.
Link copied to clipboard
interface Response
A response of the CreatePopupCallback.

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.